﻿using System.Configuration;

namespace CssAndJsCombiner.Configuration
{
    public class ClientResourceItemElement : ConfigurationElement
    {
        [ConfigurationProperty("path", IsRequired = true)]
        public string Path
        {
            get { return (string)this["path"]; }
            set { this["path"] = value; }
        }

        [ConfigurationProperty("loader", IsRequired = false, DefaultValue = "CssAndJsCombiner.ClientResourcePathLoader, CssAndJsCombiner")]
        public string Loader
        {
            get { return (string)this["loader"]; }
            set { this["loader"] = value; }
        }

        [ConfigurationProperty("compress", IsRequired = false, DefaultValue = true)]
        public bool Compress
        {
            get { return (bool)this["compress"]; }
            set { this["compress"] = value; }
        }
    }
}
